home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
C
/
Frameworks
/
ControlStripShell 1.1
/
CSShell.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-04-01
|
1KB
|
53 lines
#pragma once
enum{
Resolution1Index = 2,
Resolution2Index,
Resolution3Index,
Resolution4Index,
Resolution5Index,
Resolution6Index,
dashIndex,
MirroringOnIndex,
MirroringOffIndex,
BlackandWhiteIndex,
FourGraysIndex,
FourColorsIndex,
SixteenGraysIndex,
SixteenColorsIndex,
TwoFiftySixGraysIndex,
TwoFiftySixColorsIndex,
ThousandsIndex,
MillionsIndex
};
#define kPopupMenuID 256 // STR# ID
#define kArrowPictID 256 // arrow pict ID
#define kHelpStringIndex 1 // index of the help string
#define kDRVRStringIndex 2 // index of the DRVR string
#define kIconWidth 16 // width of the ics8
#define width(rect) ((rect).right - (rect).left) // macro for rect width
#define height(rect) ((rect).bottom - (rect).top) // macro for rect height
#define PicFrame(what) ((**MyGlobals.what).picFrame) // macro for picture frame rect
#define pstrcpy(dst, src) (BlockMove((src), (dst), (src)[0] + 1))
#include <Icons.h>
#include <ControlStrip.h>
typedef struct
{
Handle iconSuite;
MenuHandle myMenuH;
Handle myStrings;
PicHandle myArrowPict;
} MyGlobals, *MyGlobalPtr, **MyGlobalHandle;
void DoCSTrack(MyGlobalHandle myGlobals, Rect *statusRect, GrafPtr statusPort);
void DoCSDraw(MyGlobalHandle myGlobals, Rect *statusRect, GrafPtr statusPort);
unsigned long DoCSTickle(MyGlobalHandle myGlobals, Rect *statusRect, GrafPtr statusPort);
void DoCSClose(MyGlobalHandle myGlobals);
long DoCSInit(void);
void DoCSClick(MyGlobalHandle myGlobals, const Rect *statusRect);